/*
This file is part of luacalc
(C) 2006 Richard Simes
You may distribute it under the terms of the GNU General Public License
*/


#ifndef LUACALCHELP_H
#define LUACALCHELP_H


// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"

#ifdef __BORLANDC__
    #pragma hdrstop
#endif

#ifndef WX_PRECOMP
    #include "wx/wx.h"
#endif

#ifdef __cplusplus
extern "C" {
#endif


#include "lua.h"

#include "lauxlib.h"
#include "lualib.h"

#ifdef __cplusplus
}
#endif



class HelpFrame: public wxFrame {
public:

  HelpFrame(wxWindow* parent, int id, const wxString& title, const wxPoint& pos=wxDefaultPosition, const wxSize& size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE);
	~HelpFrame();

	void GetFunctions(lua_State* L);
 	void OnSelect(wxCommandEvent& event);

private:
	void SetProperties();
	void DoLayout();
	wxListBox* function_list;
	wxStaticText* func_label;
	wxStaticText* desc_label;
	wxPanel* desc_panel;


};

	

#endif // LUACALCHELP_H
